<template>
  <div>
    <!-- 根据路由进行访问 -->
    <router-view/>
  </div>
</template>

<script >

import store from '@/store/index.js';

  export default {
    name:"App",
    created(){
      //防止页面刷新vuex重置
      store.commit('setUser',store.getters.getUser)
      store.commit('setManger',store.getters.getManger)
      store.commit('setLoggedIn',store.getters.isLoggedIn)
    }
  }
</script>

<style scoped>
#app{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
</style>
